#g++ main.c 04.dot_product_acemesh.c -o 04.dot_product_acemesh -DDAG -DREDUCTION -Wall -I/home/gaoxr/dag_task_scheduler/include -L/home/gaoxr/dag_task_scheduler/lib -ldag_task_scheduler -lpthread -lstdc++ -ltbb -lrt
#g++ main.c 04.dot_product_acemesh.c -o 04.dot_product_acemesh -DDAG -Wall -I/home/gaoxr/dag_task_scheduler/include -L/home/gaoxr/dag_task_scheduler/lib -ldag_task_scheduler -lpthread -lstdc++ -ltbb -lrt
#./04.dot_product_acemesh 16384 1024
#./04.dot_product_acemesh 32768 1024


file=$3
result=result.log

./01.dot_product_seq $1 $2 >> $file
./02.dot_product_task+dep $1 $2 >> $file
./03.dot_product_task+reduction $1 $2  >> $file
g++ main.c 04.dot_product_acemesh.c -o 04.dot_product_acemesh_dep -DDAG -Wall -I/home/gaoxr/dag_task_scheduler/include -L/home/gaoxr/dag_task_scheduler/lib -ldag_task_scheduler -lpthread -lstdc++ -ltbb -lrt
./04.dot_product_acemesh_dep $1 $2 >> $file
g++ main.c 04.dot_product_acemesh.c -o 05.dot_product_acemesh_reduction -DDAG -DREDUCTION -Wall -I/home/gaoxr/dag_task_scheduler/include -L/home/gaoxr/dag_task_scheduler/lib -ldag_task_scheduler -lpthread -lstdc++ -ltbb -lrt
./05.dot_product_acemesh_reduction $1 $2  >> $file

#cat temp.log | grep -n "time (ms)"| awk '{print $9}'
